home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-02-08 | 2.6 KB | 79 lines |
- # --------------------------------------------------------------------
- # (C) Copyright 1990-1994 by Autodesk, Inc.
- # Permission to use, copy, modify, and distribute this software and its
- # documentation for any purpose and without fee is hereby granted.
- # THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
- # ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
- # MERCHANTABILITY ARE HEREBY DISCLAIMED.
- # --------------------------------------------------------------------
- #
- # ARX make file for 32-bit MSVC++ for Windows and Windows NT
- #
- # This make file uses the 32-bit edition MSVC++ for Windows and Windows
- # NT to build an ARX Dynamic Link Library.
- # You must use the MKARX.BAT file to set up the initial DOS
- # environment and launch nmake using this make file.
- #
- # This make file was created from an MSVC++ IDE project file (which is
- # already a make file with extra stuff in it). The unnecessary macros
- # were stripped out and replaced with the actual source file name $(INFILE)
- # which is an environment variable set by the MKARX.BAT file to the
- # value of the desired source file name.
-
- # use if source file extension is .CPP
- # EXT = CPP
-
- # use if source file extension is .CC
- EXT = CC
-
- # use if DLL extension is .DLL
- # DLLEXT = DLL
-
- # use if DLL extension is .ARX
- DLLEXT = ARX
-
- DEFFILE = $(INFILE).DEF
-
- # for debug:
- CFLAGS = /nologo /G3 /Zp1 /W3 /Zi /YX /D "_DEBUG" /D "ACRXAPP" \
- /D "RADPACK" /D "RADPACK" /D "ACRXAPP" /D "_X86_" /D "STRICT" /MT \
- /Fd$(INFILE) /Fp$(INFILE)
-
- LFLAGS = /NOLOGO /DEBUG /DEBUGTYPE:cv /BASE:0x1c000000 \
- /ENTRY:"DllEntryPoint@12" /SUBSYSTEM:windows \
- user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib olecli32.lib \
- olesvr32.lib shell32.lib
-
- # for no debug:
- #CFLAGS = /nologo /G3 /Zp1 /W3 /YX /O2 /D "NDEBUG" /D "RADPACK" \
- # /D "ACRXAPP" /D "_X86_" /D "STRICT" /FR /MT /Fp$(INFILE)
- #LFLAGS = /NOLOGO /BASE:0x1c000000 /ENTRY:"DllEntryPoint@12" \
- # /SUBSYSTEM:windows user32.lib gdi32.lib winspool.lib \
- # comdlg32.lib advapi32.lib olecli32.lib olesvr32.lib shell32.lib
-
- DEP = \
- $(ACRXINC)\rxdefs.h \
- $(ACRXINC)\adesk.h \
- $(ADSINC)\adslib.h \
- $(ADSINC)\ads.h \
- $(ADSINC)\adsdef.h \
- $(ADSINC)\adscodes.h
-
-
- all: $(INFILE).$(DLLEXT)
-
- $(INFILE).OBJ: $(INFILE).$(EXT) $(DEP)
- $(CPP) $(CFLAGS) /c /Tp$(INFILE).$(EXT)
-
- $(INFILE).$(DLLEXT): $(INFILE).OBJ $(LIBS_EXT) $(DEFFILE)
- echo >NUL @<<$(INFILE).CRF
- $(INFILE).OBJ
- -DLL -OUT:$(INFILE).$(DLLEXT)
- RXAPI.LIB
-
-
- -def:$(DEFFILE) -implib:$(INFILE).lib
- <<
-
- link $(LFLAGS) @$(INFILE).CRF
-